import request from '@/utils/request'

// 查询入住信息列表
export function listCheckroom(query) {
  return request({
    url: '/stureg/checkroom/list',
    method: 'get',
    params: query
  })
}

// 查询入住信息详细
export function getCheckroom(id) {
  return request({
    url: '/stureg/checkroom/' + id,
    method: 'get'
  })
}

// 新增入住信息
export function addCheckroom(data) {
  return request({
    url: '/stureg/checkroom',
    method: 'post',
    data: data
  })
}

// 修改入住信息
export function updateCheckroom(data) {
  return request({
    url: '/stureg/checkroom/update',
    method: 'post',
    data: data
  })
}

// 删除入住信息
export function delCheckroom(id) {
  return request({
    url: '/stureg/checkroom/delete/' + id,
    method: 'post'
  })
}
